const express = require('express')
const router = express.Router()

const expressJoi = require('@escook/express-joi')
const joi = require('joi')
//导入验证模块
const user_schema = require('../schema/user')

const user_hanlder = require('../router_hanlder/user')

//登录路由
router.post('/login',expressJoi(user_schema.reg_login_schema),user_hanlder.login)

//注册路由
router.post('/reglogin',expressJoi(user_schema.reg_login_schema),user_hanlder.reglogin)

module.exports = router